<?php
declare (strict_types=1);

use think\facade\Route;

/**
 * 对外Api管理
 */
$namespace = '\app\callback\controller';

Route::group(function () use ($namespace) {

    //无塑地球主体微信开放平台(第三方平台)
    Route::any('wsThirdPartyAuthorize$', $namespace . '\Wechat@wsThirdPartyAuthorize')->name('微信开放平台第三方平台授权');
    Route::any('wsThirdPartyEvent/:appid', $namespace . '\Wechat@wsThirdPartyEvent')->name('微信开放平台第三方平台事件');
    //无塑地球主体微信公众号
    Route::get('wsDistribution$', $namespace . '\Wechat@getWsDistribution')->name('无塑地球主体微信公众号验证token');
    Route::post('wsDistribution$', $namespace . '\Wechat@postWsDistribution')->name('无塑地球主体微信公众号接收事件');
    //微信支付回调
    Route::post('wechatPayNoticeScanBag$', $namespace . '\Wechat@wechatPayNoticeScanBag')->name('微信支付回调出袋');

    //EMQX认证回调
    Route::post('emqxMqttAuth$', $namespace . '\Emqx@emqxMqttAuth')->name('EMQX认证回调');
    Route::post('emqxMqttAcl$', $namespace . '\Emqx@emqxMqttAcl')->name('EMQX权限回调');

    //阿旗平台回调
    Route::post('getCodeAfterSubscribe$', $namespace . '\AqiInfo@getCodeAfterSubscribe')->name('阿旗平台回调');
    //绿葆平台回调
    Route::post('lvBaoAfterSubscribe$', $namespace . '\LvBao@lvBaoAfterNotify')->name('绿葆平台回调');
    //美葩平台回调
    Route::post('meiPaAfterNotify$', $namespace . '\MeiPa@meiPaAfterNotify')->name('美葩平台回调');
    //零塑平台回调
    Route::post('LinSuAfterNotify$', $namespace . '\LinSu@LinsuAfterNotify')->name('零塑平台回调');
    //企业微信回调
    Route::any('wsWorkDistribution$', $namespace . '\Wechat@postWsWorkDistribution')->name('无塑地球企业微信接收事件');
    //东传微信公众号回调
    Route::post('DcAfterNotify', $namespace . '\Dc@DcAfterNotify')->name('东传公众号回调');
    //码友公众号回调
    Route::post('MaYouAfterNotify', $namespace . '\MaYou@MaYouAfterNotify')->name('码友公众号回调');
});



